package eureka.customer.controller;

import eureka.customer.client.ProviderClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CustomerColonyFeignController {
    @Autowired
    private ProviderClient providerClient;

    @GetMapping("c1")
    public String c1(){
        return "feign-" + providerClient.c1();
    }

    @GetMapping("c2")
    public String c2(){
        return "feign-" + providerClient.c2();
    }
}
